import request from "@/router/axios";

export function lineList() {
  return request({
    url: "/admin-api/o3-pfoc/realityproductlinemain/page",
    method: "get",
  });
}

// 计划达成率
export function planAchievementRate(data) {
  return request({
    url: "/admin-api/o3-workorder/customizeReport/planAchievementRate",
    method: "post",
    data: data,
  });
}
// 日报废率
export function calculateScrappedRate(data) {
  return request({
    url: "/admin-api/o3-workorder/customizeReport/dailyScrapRate",
    method: "post",
    data: data,
  });
}

// FQC批合格率
export function lineFqcBatchPassRate(data) {
  return request({
    url: "/admin-api/o3-workorder/customizeReport/lineFqcBatchPassRate",
    method: "post",
    data: data,
  });
}

// 车间FQC批合格率
export function fqcBatchPassRate(data) {
  return request({
    url: "/admin-api/o3-workorder/customizeReport/fqcBatchPassRate",
    method: "post",
    data: data,
  });
}

// 车间-工时趋势图
export function workingHoursTrend(data) {
  return request({
    url: "/admin-api/o3-workorder/customizeReport/workingHoursTrend",
    method: "post",
    data: data,
  });
}

// 产线-实时产能趋势图
export function realProductionTrend(data) {
  return request({
    url: "/admin-api/o3-workorder/customizeReport/realProductionTrend",
    method: "post",
    data: data,
  });
}
